const fs = require('fs')

exports.createStaticEnvFile = function (path, env) {
  let content = ``
  content = `window.EPENV = ${JSON.stringify(env, null, 2)}`
  fs.writeFileSync(path + '/ep-env.js', content)
}

exports.createStaticChunkFile = function (path, env) {
  let content = ``
  content = `window.EPCHUNK = ${JSON.stringify(env, null, 2)}`
  fs.writeFileSync(path + '/ep-chunk.js', content)
}
